<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : teamsComparsionCarts.xsl
    Created on : Pondelok, 2011, máj 16, 0:01
    Author     : peto
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="text" media-type="html/text"/>
    <xsl:param name="team"/>
    <xsl:template match="/teams-progress">
        <xsl:for-each select="round"> 
            <xsl:for-each select="team">
                <xsl:if test="@name=$team">
                    <xsl:value-of select="position()"/>
                </xsl:if>
            </xsl:for-each>  
            <xsl:if test="position()!=last()">
                       <xsl:text>,</xsl:text>
                     </xsl:if>
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>
